package com.example.baseproject;

import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;

public class Prodialog extends Activity {
	int setcode=0;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.prodial);
		try{
		setcode= getIntent().getIntExtra(PublicConstant.PRODIALOG_SETCODE, 0);
		}catch(Exception e){setcode=0;}
		if(setcode!=0){
			setResult(setcode);
		}
	}
	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
	    switch (keyCode) {
	    case KeyEvent.KEYCODE_BACK:
	        return true;
	    }
	    return super.onKeyDown(keyCode, event);
	}
}
